-- GENERATED SPELL FOR [Bristlelimb Shaman] --


function spell0_17320(pUnit, Event) --@Flame Shock,n/a--
pUnit:FullCastSpellOnTarget(32967,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17320', 12000, 1)
end

function spell1_17320(pUnit, Event) --@Scorching Totem,Self--
pUnit:FullCastSpellOnTarget(32968,pUnit)
pUnit:RegisterEvent('Sorts_17320', 35283, 1)
end

function Sorts_17320(pUnit, Event)
local choix_sorts_17320 = math.random(0, 1)
if choix_sorts_17320 == 0 then
pUnit:RegisterEvent('spell0_17320', 1, 1)
end
if choix_sorts_17320 == 1 then
pUnit:RegisterEvent('spell1_17320', 1, 1)
end
end

function mob17320_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17320', math.random(1500, 3000), 1)
end

function mob17320_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17320_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17320_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17320, 1, 'mob17320_Action')
RegisterUnitEvent(17320, 2, 'mob17320_Leave')
RegisterUnitEvent(17320, 3, 'mob17320_Kill')
RegisterUnitEvent(17320, 4, 'mob17320_Die')
